<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>02_元素浮动后的特点</title>
    <style>
         .outer {
             width: 400px;
             height: 400px;
             background-color: grey;
             padding: 10px;
             text-align: center;
         }
         .box {
             font-size: 40px;
             padding: 10px;
         }
         .box1  {
             background-color: chartreuse;
         }
         .box2  {
             background-color: purple;
             float: left;
             /* width: 200px;
             height: 200px; */
             margin-left: 10px ;
             margin-right: 10px;
             margin-top: 10px;
             margin-bottom: 10px;
         }
         .box3  {
             background-color: yellow;
         }

    </style>
</head>
<body>
    <div class="outer">
        <div class="box box1">盒子1</div>
        <div class="box box2">盒子2</div>
        <div class="box box3">盒子3</div>
    </div>
</body>
</html>